home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
tex
/
cs_tex_4
/
cstex4_2.zoo
/
makeindx.lzh
/
MAKEINDX
/
MAKEINDX.MAN
< prev
next >
Wrap
Text File
|
1991-09-10
|
23KB
|
495 lines
MAKEINDEX
NAME
makeindex - a general purpose, formatter-independent index
processor
SYNOPSIS
makeindex [-ilqrc] [-s sty] [-o ind] [-t log] [-p no] [ idx0
idx1 idx2 ...]
DESCRIPTION
makeindex is a general purpose index processor. It takes
one or more raw index files (normally generated by a for-
matter), sorts the entries, and produces the actual index
file. It is not dependent on any particular format of raw
index file, although the .idx file generated by is default.
Up to three levels (0, 1, and 2) of subitem nesting within
the same entry is supported. The input format may be rede-
fined in a style file so that raw index or glossary output
from other formatters may be processed. The style file also
defines the style of output index file. Unless specified
otherwise, the file name base of the first input file (idx0)
is used to determine other related input/output files. For
each input file name specified, the name itself is first
used. If not found and the name has no extension part, it
is concatenated with the .idx extension. If this again
fails, the program aborts.
OPTIONS
-i Use stdin as the input file. When this option is
specified and the -o is not, output is written to
stdout.
-l Use letter ordering. Default is word ordering
(explained in the ORDERING section).
-q Quiet mode, send no messages to stderr. By
default progress and error messages are sent to
stderr as well as the transcript file. The -q
option disables the stderr messages.
-r Disable implicit page range formation. By default
three or more successive pages will be automati-
cally abbreviated as a range (e.g. 1--5). The -r
option disables it, making the explicit range
operators the only way to create page ranges (see
the SPECIAL EFFECTS section below).
-c Enable blank compression. By default every blank
counts in the index key. The -c option ignores
leading and trailing blanks and tabs and
compresses intermediate ones to a single space.
-s sty Take sty as the style file. There is no default
for the style file name. The environment variable
INDEXSTYLE defines the path where the style file
should be found.
-o ind Take ind as the output index file. By default the
file name base of the first input file idx0 con-
catenated with the extension .ind is used as the
output file name.
-t log Take log as the transcript file. By default the
file name base of the first input file idx0 con-
catenated with the extension .ilg is used as the
transcript file name.
-p no Set the starting page number of the output index
file to be no. This is useful when the index file
is to be formatted separately. Other than pure
numbers, three special cases are allowed for no:
any, odd, and even. In these special cases, the
starting page number is determined by retrieving
the last page number from the source log file.
The source log file name is determined by con-
catenating the file name base of the first raw
index file (idx0) with the extension .log. The
last source page is obtained by searching backward
in the log file for the first instance of a number
included in [...]. If a page number is missing or
the log file is not found, no attempt will be made
to set the starting page number. The meaning of
each of these cases follows.
any The starting page is the last source
page number plus 1.
odd The starting page is the first odd page
following the last source page number.
even The starting page is the first even page
following the last source page number.
STYLE FILE
The style file format is very simple. It is a list of
<specifier, attribute> pairs. There are two types of
specifiers (input and output). The pairs don't have to obey
any particular order in the file. A line lead by `%' is a
comment. The following is a list of all the specifiers and
their respective arguments where <string> is an arbitrary
string delimited by double quotes ("..."), <char> is a sin-
gle letter embraced by single quotes ('...'), and <number>
is a nonnegative integer. The maximum length of a <string>
is 144. Notice that a backslash must be escaped (by an
extra backslash) in the string quotation. Anything not
specified in the style file will be assigned a default
value, which is shown at the rightmost column. This file
can reside anywhere in the path defined by the environment
variable INDEXSTYLE.
% Input Style Specifiers
keyword <string> "\\indexentry"
This is the command which
tells makeindex that its argu-
ment is an index entry.
arg_open <char> '{'
This is the opening delimiter
for the index entry argument.
arg_close <char> '}'
This is the closing delimiter
for the index entry argument.
range_open <char> '('
The opening delimiter indicat-
ing the beginning of an expli-
cit page range.
range_close <char> ')'
The closing delimiter indicat-
ing the end of an explicit
page range.
level <char> '!'
The delimiter which denotes a
new level of subitem.
actual <char> '@'
The symbol which indicates
that the next entry is to
appear in the actual index
file.
encap <char> '|'
The symbol which indicates
that the rest of the argument
list is to be used as the
encapsulating command for the
page number.
quote <char> '"'
escape <char> '\\'
The symbol which escapes the
next letter, unless its
preceding letter is escape.
In other words, quote is used
to escape the letter whcih
immediately follows it. But
if it is preceded by escape,
it does not escape anything.
Notice that the two symbols